<template>
  
          <el-main>
            <!-- <el-config-provider :locale="locale">  将element-plus的默认语言修改为中文-->
            <el-config-provider :locale="locale">
              <!-- 路由的出口 -->
              <router-view></router-view>
            </el-config-provider>
          </el-main>
        <!-- </el-container> -->
      <!-- </el-container>
    </div> -->
  </template>
  <script>
  import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
  export default {
    data(){
      return{
  
      }
    },
    created(){
        console.log(this.$router.getRoutes())
    },
    computed:{
      routes(){
        // let arr = this.$router.getRoutes().filter(function(r){
        //         return r.path.indexOf("/")==r.path.lastIndexOf("/")
        // })
        // return arr; 
        return this.$router.getRoutes().filter(r=>r.path.indexOf("/")==r.path.lastIndexOf("/"))
      },
      locale(){
        return zhCn;
      }
    }
  }
  </script>
  
  
  <style scoped>
  html,body{
    height: 100%;
  }
.el-main{
  padding:0px;
}

  /* .el-header{
    margin: 0px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-weight: bold;
    background: peru;
  } */

  </style>